cmake_minimum_required(VERSION 2.8.3)
project(simple_publisher)

## 设置编译器标准为C++11
set(CMAKE_CXX_STANDARD 11)

## 查找依赖的包
find_package(catkin REQUIRED COMPONENTS 
  roscpp 
  std_msgs
)

## 声明catkin包
#catkin_package(
#  CATKIN_DEPENDS roscpp std_msgs
#)

## 添加包含路径
include_directories(
  ${catkin_INCLUDE_DIRS}
)

## 声明可执行文件并链接依赖库
add_executable(simple_publisher simple_publisher.cpp)
target_link_libraries(simple_publisher ${catkin_LIBRARIES})

